import request from '@/utils/request';
import exportRequest from '@/utils/exportRequest';
/* 线索导出 */
export const leadsExport = params => request({
    url: `/crm/leads/export`,
    method: 'GET',
    params
}).then(({ data }) => {
    return data;
}); // 线索导出
export const followRecordExport = params => request({
    url: `/crm/leads/follow_record_export`,
    method: 'GET',
    params
}).then(({ data }) => {
    return data;
}); // 线索跟进导出
export const excelExportLog = params => request({
    url: `/crm/leads/excel_export_log`,
    method: 'GET',
    params
}).then(({ data }) => {
    return data;
}); // excel生成记录
export const excelDown = params => request({
    url: `/crm/leads/excel_down`,
    method: 'GET',
    params
}).then(({ data }) => {
    return data;
}); // excel下载
export const excelDownLog = params => request({
    url: `/crm/leads/excel_down_log`,
    method: 'GET',
    params
}).then(({ data }) => {
    return data;
}); // excel下载记录

/* 客户导出 */
export const exportFieldList = params => request({
    url: '/crm/customer/exportFieldList',
    method: 'GET',
    params
}).then(({ data }) => {
    return data;
}); // 客户导出字段列表
export const exportinfo = params => exportRequest({
    url: '/crm/customer/exportinfo',
    method: 'POST',
    data: params
}).then(({ data }) => {
    return data;
}); // 客户信息导出
export const exportCustomer = params => request({
    url: '/crm/customer/exportFollow',
    method: 'POST',
    data: params
}).then(({ data }) => {
    return data;
}); // 跟进导出
export const downExcel = params => request({
    url: '/crm/customer/downExcel',
    method: 'GET',
    params
}).then(({ data }) => {
    return data;
}); // 下载
export const downExcelLog = params => request({
    url: '/crm/customer/downExcelLog',
    method: 'GET',
    params
}).then(({ data }) => {
    return data;
}); // 下载记录
export const exportInfoList = params => request({
    url: '/crm/customer/exportInfoList',
    method: 'GET',
    params
}).then(({ data }) => {
    return data;
}); // excel导出记录

export const exportFollowRecord = params => request({
    url: '/dealer/Distributor/exportFollowRecord',
    method: 'post',
    data: params
}); // 经销商跟进导出
export const exportFollowRecordList = params => request({
    url: '/dealer/Distributor/exportFollowRecordList',
    method: 'GET',
    params
}).then(({ data }) => {
    return data;
}); // excel生成记录
export const downloadFollowRecord = params => request({
    url: `/dealer/Distributor/downloadFollowRecord`,
    method: 'GET',
    params
}).then(({ data }) => {
    return data;
}); // 经销商excel下载
export const exportFollowRecordDownload = params => request({
    url: '/dealer/Distributor/exportFollowRecordDownload',
    method: 'GET',
    params
}).then(({ data }) => {
    return data;
}); // 下载记录
